import { EGemType, IGem } from "../Item/Gem";
import { EAffixType, EItemQuality, EItemType } from "../Item/Item";


// 词缀接口
// export interface EItemAffix {
//     type: EAffixType;
//     value: number;      // 实际生成的随机数值
//     isPercentage: boolean; // 是否为百分比
//     description: string;  // 词缀描述
// }

export const GemConfig: Record<string, IGem> = {
    // 宝石配置数据
    "gem_red_01": {
        id: "gem_red_01",
        uid: "gem_red_01", // 唯一ID
        name: "红宝石",
        gemType: EGemType.Red,
        quality: EItemQuality.Common,
        desc: "一颗红宝石",
        icon: "pic/other/gem/gem_red_01",
        itemType: EItemType.Gem, // 明确指定类型
        count: 1, // 配置中设为1，运行时可能会变化
        stackable: true,
        affixes: [{
            type: EAffixType.Strength,
            value: 5,
            isPercentage: false,
            description: "增加5点力量"
        }],
        price: 100, // 价格
    },
    "gem_green_01": {
        id: "gem_green_01",
        uid: "gem_green_01", // 唯一ID
        name: "绿宝石",
        gemType: EGemType.Green,
        quality: EItemQuality.Common,
        desc: "一颗绿宝石",
        icon: "pic/other/gem/gem_green_01",
        itemType: EItemType.Gem, // 明确指定类型
        count: 1, // 配置中设为1，运行时可能会变化
        stackable: true,
        affixes: [{
            type: EAffixType.Agility,
            value: 5,
            isPercentage: false,
            description: "增加5点身法"
        }],
                price: 100, // 价格

    },
    "gem_blue_01": {
        id: "gem_blue_01",
        uid: "gem_blue_01", // 唯一ID
        name: "蓝宝石",
        gemType: EGemType.Blue,
        quality: EItemQuality.Common,
        desc: "一颗蓝宝石",
        icon: "pic/other/gem/gem_blue_01",
        itemType: EItemType.Gem, // 明确指定类型
        count: 1, // 配置中设为1，运行时可能会变化
        stackable: true,
        affixes: [{
            type: EAffixType.Intelligence,
            value: 5,
            isPercentage: false,
            description: "增加5点悟性"
        }],
                price: 100, // 价格
    },
    "gem_yellow_01": {
        id: "gem_yellow_01",
        uid: "gem_yellow_01", // 唯一ID
        name: "黄宝石",
        gemType: EGemType.Yellow,
        quality: EItemQuality.Common,
        desc: "一颗黄宝石",
        icon: "pic/other/gem/gem_yellow_01",
        itemType: EItemType.Gem, // 明确指定类型
        count: 1, // 配置中设为1，运行时可能会变化
        stackable: true,
        affixes: [{
            type: EAffixType.Vitality,
            value: 5,
            isPercentage: false,
            description: "增加5点体质"
        }],
                price: 100, // 价格
    },
    "gem_purple_01": {
        id: "gem_purple_01",
        uid: "gem_purple_01", // 唯一ID
        name: "紫宝石",
        gemType: EGemType.Purple,
        quality: EItemQuality.Common,
        desc: "一颗紫宝石",
        icon: "pic/other/gem/gem_purple_01",
        itemType: EItemType.Gem, // 明确指定类型
        count: 1, // 配置中设为1，运行时可能会变化
        stackable: true,
        affixes: [{
            type: EAffixType.InnerPower,
            value: 1,
            isPercentage: false,
            description: "增加1点内功"
        }],
                price: 100, // 价格
    },



};